import requests

url = "https://vip.hdbz.net/auth/ajaxlogin"

session = requests.Session()

login = session.post(url,data={"username":"18436276328","userpwd":"Hbg123666"})


favorite_list_response = "https://vip.hdbz.net/site/FavoriteList?page=1&limit=10"



favorite_list = session.get(favorite_list_response)
print(favorite_list.status_code)
print(favorite_list.text)
for item in favorite_list.json()['data']:
    print(item)


add_favoriate_url = "https://vip.hdbz.net/site/ImageStore"
add_favoriate = session.post(add_favoriate_url,
                             data={"aid": "180056",
                                "imageurl": "/wallpaper/202510/180056.html"
                                                     })
if add_favoriate.text == 100:
    print("收藏成功")
else:
    print("收藏失败")